package com.game.cards;

import java.util.ArrayList;
import java.util.List;

import com.game.play.Game;

public abstract class BaseCard {
	
	protected String title;
	protected String description;
	protected Deck deck;
	
	protected static int sid = 0;
	protected int id;
	protected static List<BaseCard> cards = new ArrayList<BaseCard>();
	
	public BaseCard() {
		sid++;
		this.id = sid;
		this.deck = null;
		cards.add(this);
		
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void effect(Game game){
		
		
	}
	public static int getSID()
	{
		return sid;
	}
	public int getId()
	{
		return id;
	}
	public static List<BaseCard> getAllCardsEver()
	{
		return cards;
	}
	public void printInfo()
	{
		System.out.println("Title:" + this.title);
		System.out.println("Description: " + this.description);
	}
	public Deck getDeck() {
		return deck;
	}

	public void setDeck(Deck deck) {
		this.deck = deck;
	}
}
